<?php
namespace app\validate;

use share\validate\SceneValidate;

class MqValidate extends SceneValidate{

    protected $rule = [
        'service' =>  'require|length:2,120',
        'params' => 'require|array',
        'token' => 'require|length:30,64',
    ];  
    
    

    protected $scene = [
        'callbackDirect' => ['service','params'],
        'callback' => ['token'],
    ];
}